#include "StdAfx.h"
#include "PSysAction.h"



PSysAction::PSysAction(Ogre::SceneManager * smg ,Ogre::String scpt)
{
	mSceneMgr = smg;
	script = scpt;
}


PSysAction::~PSysAction(void)
{
}

bool PSysAction::FireTrigger(EntityControl *entity)
{
	effect  = new PSysFromScript(entity->getModelActor()->getParentSceneNode(), mSceneMgr, script);

	return true;
}
	
